//
// Created by chen on 2023/6/22.
//
#pragma once  // 防止头文件重复编译
#include "iostream"
#include "vector"
#include "algorithm"
#include "time.h"
#include "deque"
#include "fstream"

using namespace std;

#ifndef INC_0085SPEECHCONTEST_MANAGER_H
#define INC_0085SPEECHCONTEST_MANAGER_H

#endif //INC_0085SPEECHCONTEST_MANAGER_H

class Contestant{
public:
    int c_id;
    string c_name;
    deque<int> scores;
    float score;
    Contestant(int id, string name);

};

class MyCompare{
public:
    bool operator()(Contestant & c1, Contestant & c2);
};

class ContestSystem{
public:
    ContestSystem();

    void showMenu();   // 展示菜单

    void startContest();   // 开始比赛

    void viewHistory();  // 查看往届记录

    void clearHistory();  // 清空往届记录

    void exitContest();  // 退出比赛
};

